﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace Teein.LiNing.DAL
{
    public class ScoreDAL : DALBase
    {
        DALBase db = new DALBase();

        public int InsertScore(int score, int accountId,string scoredetail)
        {
            SqlParameter[] paras = { 
                new SqlParameter("@score",SqlDbType.Int),
                new SqlParameter("@accountId",SqlDbType.Int),   
                new SqlParameter("@scoreDetail",SqlDbType.NVarChar),  
            };

            paras[0].Value = score;
            paras[1].Value = accountId;
            paras[2].Size = 200;
            paras[2].Value = scoredetail;
            return db.myData.ExeSP("SP_INSERT_Scores", paras, db.ConnStr);
        }
    }
}
